//
//  ComposeModel.m
//  Wb_oc
//
//  Created by wzz on 16/7/28.
//  Copyright © 2016年 wzz. All rights reserved.
//

#import "ComposeModel.h"

@implementation ComposeModel
+ (instancetype)appsModelWithDict:(NSDictionary *)dict{
    ComposeModel * model = [[ComposeModel alloc]init];
    [model setValuesForKeysWithDictionary:dict];
    return model;
}

+ (NSArray<ComposeModel *> *)appsList{
    
    NSString * path = [[NSBundle mainBundle] pathForResource:@"compose.plist" ofType:nil];
    NSArray * tempArray = [NSArray arrayWithContentsOfFile:path];
    
    NSMutableArray * muArray = [NSMutableArray array];
    
    for (NSDictionary * dict in tempArray) {
        ComposeModel * model = [ComposeModel appsModelWithDict:dict];
        [muArray addObject:model];
    }
    return muArray.copy;
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key{}

@end
